package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.AttrEntityVO;
import com.atguigu.gulimall.product.vo.AttrRespVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author dingchunlin
 * @email dingchunlin@gmail.com
 * @date 2023-11-27 11:31:59
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrEntity(AttrEntityVO attrEntityVO);

    PageUtils getBaseList(Map<String, Object> params,Long catLogId,String type);

    AttrRespVO getDetailById(Long attrId);

    void updateAttr(AttrEntityVO attrEntityVO);

    void removeAttrIds(List<Long> list);

    /**
     * 在指定的所有属性集合里面，找出能被检索的id
     * @param attrIds
     * @return
     */
    List<Long> selectSearchAttrs(List<Long> attrIds);

}

